<% include "/WEB-INF/includes/cabeceira.gtpl" %>

<div id="content" class="group">




<div id="container">
<div id="container-inner">

<h1>concello</h1>
<form id="formulario" method="POST" action="novoConcello.groovy">
<fieldset>
<p>introduccion</p>


<div class="campo">
<label class="etiqueta" for="nome">Nome</label>
<input type="text" id="nome" name="nome"/>
<span class="mensaje"></span>
</div>



  <div class="controls">
  
      <input id="cancel" class="submit" name="cancel" type="submit" 
          value="Cancela"/>          
            
      <input id="submit" class="submit" name="submit" type="submit" 
          value="Crea concello"/>
          
    </div>
    

</fieldset>

</form>
</div>
</div>


</div> <!-- /content -->


<% include "/WEB-INF/includes/pe.gtpl" %>



<script src="js/jquery-1.4.1.js" type="text/javascript"></script>
<script src="js/jquery.validate.js" type="text/javascript"></script>


<script type="text/javascript">
jQuery(function() {
	var validator = jQuery("#formulario").validate({
		rules: {
			nome: "required"
		},
		messages: {
			nome: "Este campo � requirido"
		},
		// the errorPlacement has to take the table layout into account
		errorPlacement: function(error, element) {
			if ( element.is(":radio") )
				error.appendTo( element.parent().next().next() );
			else if ( element.is(":checkbox") )
				error.appendTo ( element.next() );
			else
				//error.appendTo( element.parent().next() );
				error.appendTo( element.next());
		},
		
		// set this class to error-labels to indicate valid fields
		success: function(label) {
			// set &nbsp; as text for IE
			label.html("&nbsp;").addClass("checked");
		}
	});
	
});	
	
	
</script>	


<% include "/WEB-INF/includes/fin.gtpl" %>

